package vng.wcc.sonph.LauncherGenerator;

import android.content.Context;
import android.graphics.Bitmap;

public class TabCellInfo {

	int iconResId;
	Bitmap iconBitmap;
	Bitmap activeIconBitmap;

	/**
	 * Contains information of a tab item 
	 * @param context 
	 * @param iconResId icon resource id
	 * @param activeIconResId resource id for the icon in active state
	 * @param tabFormatter contains tab layout information
	 */
	public TabCellInfo(Context context,int iconResId,int activeIconResId,TabFormatter tabFormatter) {
		this.iconResId = iconResId;
		
		this.iconBitmap = Formatter.scaleImageResource(
				context, 
				iconResId, 
				tabFormatter.getTabImageSize(), 
				tabFormatter.getTabImageSize());
		this.activeIconBitmap = Formatter.scaleImageResource(
				context, 
				activeIconResId, 
				tabFormatter.getTabImageSize(), 
				tabFormatter.getTabImageSize());
	}

	public Bitmap getActiveIconBitmap() {
		return this.activeIconBitmap;
	}

	public Bitmap getIconBitmap() {
		return this.iconBitmap;
	}
	

}
